/*** 
 * @Author: Yanan Chen
 * @Date: 2021-11-02 13:47:03
 * @LastEditTime: 2021-12-09 11:24:30
 * @LastEditors: Yanan Chen
 * @Description: 
 * @FilePath: \fw\esp32\Src\APP\app_sensor.h
 * @
 */
#ifndef PRJ_APP_SENSOR_H
#define PRJ_APP_SENSOR_H

#include "hal_function.h"
#include "sht20.h"
#include "mpu6050.h"

enum class SensorProcess
{
    POWER,
    SHT20,
//    MPU6050,
    MAX,
};


class AppSensor
{
public:
    AppSensor(){};
    ~AppSensor(){};
    static void threadCreate();
private:
    static TaskHandle_t  taskHandle;
    static TimerHandle_t timerHandle;
    static void thread(void *a);
    static void threadtimeCallback(TimerHandle_t handle);
    void process(void);
    void init(void);

    
};

extern AppSensor *sensorObj;


#endif